<?php
/**
 * @desc:
 * wsxc - LinkedShopGoods.php
 * @author: quanjianyu
 * @email: 164174421@qq.com
 * @dateTime：2021/4/11 1:02
 */

namespace wsxc\bean\shopGoods;


class LinkedGoods {
    // 目标 商家id
    private string $targetAlbumId;
    // 商品id
    private string $itemId;

    /**
     * LinkedGoods constructor.
     * @param string $targetAlbumId
     * @param string $itemId
     */
    public function __construct(string $itemId, string $targetAlbumId = '') {
        $this->targetAlbumId = $targetAlbumId;
        $this->itemId = $itemId;
    }

    /**
     * @desc: 获取get参数
     * @return array
     * @author: quanjianyu
     * @email: 164174421@qq.com
     * @dateTime：2021/4/11 15:51
     */
    public function toGetParams(): array {
        $data['targetAlbumId'] = $this->getTargetAlbumId() ? : '';
        $data['itemId'] = $this->getItemId() ? : '';
        return $data;
    }


    /**
     * @return string
     */
    public function getTargetAlbumId(): string {
        return $this->targetAlbumId;
    }

    /**
     * @param string $targetAlbumId
     */
    public function setTargetAlbumId(string $targetAlbumId): void {
        $this->targetAlbumId = $targetAlbumId;
    }

    /**
     * @return string
     */
    public function getItemId(): string {
        return $this->itemId;
    }

    /**
     * @param string $itemId
     */
    public function setItemId(string $itemId): void {
        $this->itemId = $itemId;
    }


}